#include "stack_base_array.h"
#include <stdio.h>

int main(){
	int i = 0,j = 0;
	printf("请输入要转换的机制数");
	scanf("%d",&i);
	STACK *stack = stack_create(20);
	while(!stack_full(stack)){
			if(i <= 0) break;
			j = i % 16;
			stack_push(stack,j);
			i = i / 16;
			if(i > 15){
				
				}
			stack_push(stack,i);
			}
	while(!stack_empty(stack)){
			printf("%d ",stack_pop(stack));
		}
	printf("\n");
	stack_destroy(stack);
	return 0;
	}
